#include<bits/stdc++.h>

using namespace std;

int main() {
    int a[3][4];
    for (int x = 0; x < 3; x++)
        for (int y = 0; y < 4; y++)
            cin >> a[x][y];


    for (int x = 0; x < 3; x++) {
        for (int y = 0; y < 4; y++) {
            cout << a[x][y] << " ";
        }
        cout << endl;
    }
    return 0;
}
